@layout("/common/_container.html",{js:["/assets/transport/tMap/tMonitor.js"]}){
<script type="text/javascript">
    window._AMapSecurityConfig = {securityJsCode: "dba528dcd7d571a231a330b532a6cf61",};
</script>
<script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=4fbb5ae31246fb4337678f7649c87b1b"></script>
<script src="https://a.amap.com/jsapi_demos/static/demo-center/js/demoutils.js"></script>
<script src="https://webapi.amap.com/ui/1.1/main.js?v=1.1.1"></script>

<div id="outer-box">
    <div id="container"></div>
    <div id="panel">
        <div id="routes-container"></div>
    </div>
    <div id="searchPanel">
        <div class="search-inputs">
            <input type="text" id="searchInput" placeholder="请输入运输单号">
            <select id="searchSelect">
                <option value="">选择项目部</option>
                @for(item in basicOperatelist!){
                <option value="${item.operateId}">${item.operateName}</option>
                @}
            </select>
        </div>
        <button id="searchButton" type="button" class="layui-btn layui-bg-purple">搜索</button>
    </div>
</div>

<style>
    /* 设置页面高度和宽度 */
    #container, body, html {
        height: 100%;
        width: 100%;
    }

    /* 设置绝对定位 */
    #loadingTip, #panel {
        position: absolute;
        top: 0;
    }

    /* 默认的边距和字体大小 */
    body, html {
        margin: 0;
        font-size: 12px;
    }

    /* 外层容器 */
    #outer-box {
        height: 100%;
        padding-right: 300px;
    }

    /* 面板区域 */
    #panel {
        right: 0;
        width: 300px;
        z-index: 999;
        height: calc(100% - 5px);
        overflow: hidden;
        overflow-y: auto;
    }

    /* 路径容器 */
    #routes-container {
        height: 1200px;
        margin-left: 10px;
    }

    /* 加载提示 */
    #loadingTip {
        z-index: 9999;
        left: 0;
        padding: 3px 10px;
        background: red;
        color: #fff;
        font-size: 13px;
    }

    /* 路径项 */
    .route-item {
        margin-bottom: 10px;
    }

    /* 路径项内部的预格式化文本 */
    .route-item pre {
        margin: 0;
    }

    /* 路径项标题 */
    .route-item h3 {
        margin: 5px 0;
        font-size: 14px;
        cursor: pointer;
    }

    /* 隐藏元素 */
    .hide {
        display: none;
    }

    /* 速度控制器 */
    .speedBox {
        padding: 5px 0;
    }

    /* 速度范围选择器 */
    .speedRange {
        vertical-align: middle;
        margin: 0;
        padding: 0;
        width: 100px;
    }

    /* 标记信息 */
    .markerInfo {
        background: rgba(255, 255, 255, 0.7);
        padding: 2px 5px;
        border: 1px solid #ccc;
        white-space: nowrap;
    }

    #searchPanel {
        position: absolute;
        top: 30px;
        right: 310px;
        z-index: 1000;
        background: #fff;
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
        display: flex;
        align-items: center; /* 垂直居中对齐 */
    }

    .search-inputs {
        display: flex;
        flex-direction: column; /* 使子元素垂直排列 */
        margin-right: 10px; /* 在输入框和按钮之间添加一些间距 */
    }

    #searchInput {
        height: 20px;
        width: 200px;
    }

    #searchSelect {
        height: 20px;
        width: 200px;
        margin-top: 10px;
    }

    #searchButton {
        height: 50px; /* 调整按钮高度以匹配输入框和选择框的总高度 */
    }
</style>
@}